package com.meilai.project.service.finance.reimburse;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.finance.reimburse.ReimburseApplyCheckDTO;
import com.meilai.project.dto.finance.reimburse.ReimburseApplyDTO;
import com.meilai.project.dto.finance.reimburse.ReimburseApplyListDTO;
import com.meilai.project.entity.finance.reimburse.ReimburseApply;
import com.meilai.project.vo.finance.reimburse.ReimburseApplyVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xhy
 * @since 2022-12-07
 */
public interface ReimburseApplyService extends IService<ReimburseApply> {

    Page<ReimburseApplyVO> selectPageList(ReimburseApplyListDTO req);

    ReimburseApplyVO getOneById(Long id);

    List<ReimburseApplyVO> getListBySaleIds(List<Long> ids);

    List<ReimburseApplyVO> getListByContractIds(List<Long> ids);

    boolean save(ReimburseApplyDTO req);

    boolean begin(ReimburseApplyDTO req);

    boolean pass(ReimburseApplyCheckDTO req);

    boolean returnBack(ReimburseApplyCheckDTO req);

    boolean delete(Long id);

    boolean actualDelete(Long id);

}
